package com.rightsidetech.mall.dto.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class SpecsUpValueReq implements Serializable {

    @ApiModelProperty("规格值id")
    private Long id;

    @ApiModelProperty(value = "规格值",required = true)
    @Pattern(regexp = "[\\u4e00-\\u9fa5a-zA-Z0-9-./()【】]{0,20}+",message = "规格值不支持特殊字符且长度不可超过20")
    @NotBlank(message = "规格值不允许为空")
    private String specsValue;
}
